<?php
require 'Home/Controller/Controller.php ';
require 'Home/Model/DetailModel.php ';
class DetailController extends Controller{
	function __Construct(){
		parent::__Construct();
		//$this->mod = 'users';
	}
	function detail(){
		$id=$_GET['id'];
		//echo $id;
		$model=new DetailModel();
		$ad=$model->getNewsInfo($id);
		//var_dump($ad);
		$adminid=$ad['uploadadmin'];
		$this->assign('info',$model->getNewsInfo($id));
		$this->assign('admin',$model->getAdmin($adminid));
		$this->display(); 
		//return $data;
	}

}
?>